//
//  FollowReadingTableViewCell.h
//  KidReading
//
//  Created by YangShuai on 16/9/27.
//  Copyright © 2016年 刘赞黄Telen. All rights reserved.
//

#import <UIKit/UIKit.h>
#define _id_FollowReadingTableViewCell @"FollowReadingTableViewCell_id_"

@interface StatusButton : UIButton
@property(nonatomic,assign)BOOL isRuning;
@property(nonatomic,readonly)NSTimeInterval totleTime;
@property(nonatomic,readonly)NSTimeInterval coutTime;
- (void)startRunWithTotleTime:(NSTimeInterval)totleTime CurrentTime:(NSTimeInterval)currentTime;
- (void)stopRun;
- (void)stopRunTimerGoOn;
@property(nonatomic,copy)void(^timeOutBlock)();
@property(nonatomic,strong)NSString* defaultImageName;
@property(nonatomic,strong)NSString* runingImageView;
@property(nonatomic,assign)NSInteger bookId;
@property(nonatomic,assign)NSInteger pageIndex;
@property(nonatomic,assign)NSInteger sentenceId;
@end

@interface FollowReadingTableViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *showTextLabel;
@property (weak, nonatomic) IBOutlet UIView *resultImageView;
@property (weak, nonatomic) IBOutlet StatusButton *playOriBtn;
@property (weak, nonatomic) IBOutlet StatusButton *recordBtn;
@property (weak, nonatomic) IBOutlet StatusButton *playRecordBtn;
@property (nonatomic,strong) NSString* mp3Path;
@property (nonatomic,assign) NSInteger bookId;
@property (nonatomic,assign) NSInteger pageId;
@property (nonatomic,assign) NSInteger sentenceId;
@property (nonatomic,strong) NSString* ASRText;
@property (nonatomic,assign) BOOL isEnText;
@property (nonatomic,strong) NSDictionary* localResultDict;
//对应评测结果的标注区域数组
@property (nonatomic,strong) NSArray* rangeArray;
@property (nonatomic,strong) NSArray* ASRWordArray;

@property(nonatomic,copy)void(^tapPlayOri)(FollowReadingTableViewCell* cell);
@property(nonatomic,copy)void(^tapRecord)(FollowReadingTableViewCell* cell);
@property(nonatomic,copy)void(^tapPlayRecord)(FollowReadingTableViewCell* cell);
@property(nonatomic,copy)void(^syncAllResultsArray)();

-(void)checkRecordExist;
-(void)stopAllRuningButton;
-(void)cleanCellInfo;
@end
